package com.syezon.wifikey.imageloader;

import android.content.Context;
import android.graphics.Bitmap;
import android.support.v4.app.Fragment;
import android.widget.ImageView;

import com.syezon.wifikey.imageloader.listener.IGetBitmapListener;
import com.syezon.wifikey.imageloader.listener.IGetDrawableListener;
import com.syezon.wifikey.imageloader.listener.IImageLoaderListener;
import com.syezon.wifikey.imageloader.listener.ImageSize;
import com.syezon.wifikey.imageloader.tranform.IBitmapTransformation;

import java.io.File;

public interface IImageLoaderClient {
    public void init(Context context);

    public void destroy(Context context);

    public File getCacheDir(Context context);

    public void clearMemoryCache(Context context);

    public void clearDiskCache(Context context);

    public Bitmap getBitmapFromCache(Context context, String url);

    public void getBitmapFromCache(Context context, String url, IGetBitmapListener listener);

    public void displayImage(Context context, int resId, ImageView imageView);

    public void displayImage(Context context, String url, ImageView imageView);

    public void displayImage(Context context, String url, ImageView imageView, boolean isCache);

    public void displayImage(Fragment fragment, String url, ImageView imageView);

    public void displayImage(Context context, String url, ImageView imageView, int defRes);

    public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes);

    public void fetchImage(String url);
}
